package indi.kider.server.applet.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import indi.kider.common.model.apabus.Rent;
import lombok.Data;

import java.util.Date;

@Data
public class User {

    //用户id
    private Long id;
    //手机号
    private String phone;
    //密码
    private String pwd;
    //身份证号
    private String cardId;
    //类型 用户 房东 工人 合作企业 用户朋友 服务人员
    private int type;
    //新密码
    private String newPwd;
    //姓名
    private String name;
    //性别
    private Integer sex;
    //来源企业
    private String enterpriseName;
    //房间id
    private Long houseId;
    //企业id
    private Long enterpriseId;
    //公寓id
    private Long communityId;
    //预定入住时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date destineTime;
    //籍贯
    private String nation;

    //临时登录凭证code
    private String code;

    private String wxopenId;

    private String randomNum;
}
